package aos.ydksxt.dao;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by Stiofan on 2017/3/10.
 */
@Entity
@Table(name = "DJ_WBDR_GTXX")
public class DjWbdrGtxx {
    private String uuid;
    private String tdzdh;
    private String tdsyqr;
    private BigDecimal tdmj;
    private String tdxzDm;
    private String tdxz;
    private String tdytDm;
    private String tdyt;
    private BigDecimal tdyz;
    private String tdzldz;
    private Date tdsyqQsrq;
    private Date tdsyqZzrq;
    private String tdsyqZsbh;
    private Date sjcjrqQsrq;
    private Date sjcjrqZzrq;
    private String lrrDm;
    private Timestamp lrrq;
    private String xgrDm;
    private Timestamp xgrq;
    private String yxbz;
    private String tdsyqlxDm;
    private String tdsyqlxmc;

    @Id
    @Column(name = "UUID", nullable = false, length = 32)
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "TDZDH", nullable = true, length = 20)
    public String getTdzdh() {
        return tdzdh;
    }

    public void setTdzdh(String tdzdh) {
        this.tdzdh = tdzdh;
    }

    @Basic
    @Column(name = "TDSYQR", nullable = true, length = 60)
    public String getTdsyqr() {
        return tdsyqr;
    }

    public void setTdsyqr(String tdsyqr) {
        this.tdsyqr = tdsyqr;
    }

    @Basic
    @Column(name = "TDMJ", nullable = true, precision = 2)
    public BigDecimal getTdmj() {
        return tdmj;
    }

    public void setTdmj(BigDecimal tdmj) {
        this.tdmj = tdmj;
    }

    @Basic
    @Column(name = "TDXZ_DM", nullable = true, length = 10)
    public String getTdxzDm() {
        return tdxzDm;
    }

    public void setTdxzDm(String tdxzDm) {
        this.tdxzDm = tdxzDm;
    }

    @Basic
    @Column(name = "TDXZ", nullable = true, length = 30)
    public String getTdxz() {
        return tdxz;
    }

    public void setTdxz(String tdxz) {
        this.tdxz = tdxz;
    }

    @Basic
    @Column(name = "TDYT_DM", nullable = true, length = 10)
    public String getTdytDm() {
        return tdytDm;
    }

    public void setTdytDm(String tdytDm) {
        this.tdytDm = tdytDm;
    }

    @Basic
    @Column(name = "TDYT", nullable = true, length = 30)
    public String getTdyt() {
        return tdyt;
    }

    public void setTdyt(String tdyt) {
        this.tdyt = tdyt;
    }

    @Basic
    @Column(name = "TDYZ", nullable = true, precision = 2)
    public BigDecimal getTdyz() {
        return tdyz;
    }

    public void setTdyz(BigDecimal tdyz) {
        this.tdyz = tdyz;
    }

    @Basic
    @Column(name = "TDZLDZ", nullable = true, length = 300)
    public String getTdzldz() {
        return tdzldz;
    }

    public void setTdzldz(String tdzldz) {
        this.tdzldz = tdzldz;
    }

    @Basic
    @Column(name = "TDSYQ_QSRQ", nullable = true)
    public Date getTdsyqQsrq() {
        return tdsyqQsrq;
    }

    public void setTdsyqQsrq(Date tdsyqQsrq) {
        this.tdsyqQsrq = tdsyqQsrq;
    }

    @Basic
    @Column(name = "TDSYQ_ZZRQ", nullable = true)
    public Date getTdsyqZzrq() {
        return tdsyqZzrq;
    }

    public void setTdsyqZzrq(Date tdsyqZzrq) {
        this.tdsyqZzrq = tdsyqZzrq;
    }

    @Basic
    @Column(name = "TDSYQ_ZSBH", nullable = true, length = 60)
    public String getTdsyqZsbh() {
        return tdsyqZsbh;
    }

    public void setTdsyqZsbh(String tdsyqZsbh) {
        this.tdsyqZsbh = tdsyqZsbh;
    }

    @Basic
    @Column(name = "SJCJRQ_QSRQ", nullable = true)
    public Date getSjcjrqQsrq() {
        return sjcjrqQsrq;
    }

    public void setSjcjrqQsrq(Date sjcjrqQsrq) {
        this.sjcjrqQsrq = sjcjrqQsrq;
    }

    @Basic
    @Column(name = "SJCJRQ_ZZRQ", nullable = true)
    public Date getSjcjrqZzrq() {
        return sjcjrqZzrq;
    }

    public void setSjcjrqZzrq(Date sjcjrqZzrq) {
        this.sjcjrqZzrq = sjcjrqZzrq;
    }

    @Basic
    @Column(name = "LRR_DM", nullable = true, length = 11)
    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    @Basic
    @Column(name = "LRRQ", nullable = true)
    public Timestamp getLrrq() {
        return lrrq;
    }

    public void setLrrq(Timestamp lrrq) {
        this.lrrq = lrrq;
    }

    @Basic
    @Column(name = "XGR_DM", nullable = true, length = 11)
    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    @Basic
    @Column(name = "XGRQ", nullable = true)
    public Timestamp getXgrq() {
        return xgrq;
    }

    public void setXgrq(Timestamp xgrq) {
        this.xgrq = xgrq;
    }

    @Basic
    @Column(name = "YXBZ", nullable = true, length = 1)
    public String getYxbz() {
        return yxbz;
    }

    public void setYxbz(String yxbz) {
        this.yxbz = yxbz;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DjWbdrGtxx that = (DjWbdrGtxx) o;

        if (uuid != null ? !uuid.equals(that.uuid) : that.uuid != null) return false;
        if (tdzdh != null ? !tdzdh.equals(that.tdzdh) : that.tdzdh != null) return false;
        if (tdsyqr != null ? !tdsyqr.equals(that.tdsyqr) : that.tdsyqr != null) return false;
        if (tdmj != null ? !tdmj.equals(that.tdmj) : that.tdmj != null) return false;
        if (tdxzDm != null ? !tdxzDm.equals(that.tdxzDm) : that.tdxzDm != null) return false;
        if (tdxz != null ? !tdxz.equals(that.tdxz) : that.tdxz != null) return false;
        if (tdytDm != null ? !tdytDm.equals(that.tdytDm) : that.tdytDm != null) return false;
        if (tdyt != null ? !tdyt.equals(that.tdyt) : that.tdyt != null) return false;
        if (tdyz != null ? !tdyz.equals(that.tdyz) : that.tdyz != null) return false;
        if (tdzldz != null ? !tdzldz.equals(that.tdzldz) : that.tdzldz != null) return false;
        if (tdsyqQsrq != null ? !tdsyqQsrq.equals(that.tdsyqQsrq) : that.tdsyqQsrq != null) return false;
        if (tdsyqZzrq != null ? !tdsyqZzrq.equals(that.tdsyqZzrq) : that.tdsyqZzrq != null) return false;
        if (tdsyqZsbh != null ? !tdsyqZsbh.equals(that.tdsyqZsbh) : that.tdsyqZsbh != null) return false;
        if (sjcjrqQsrq != null ? !sjcjrqQsrq.equals(that.sjcjrqQsrq) : that.sjcjrqQsrq != null) return false;
        if (sjcjrqZzrq != null ? !sjcjrqZzrq.equals(that.sjcjrqZzrq) : that.sjcjrqZzrq != null) return false;
        if (lrrDm != null ? !lrrDm.equals(that.lrrDm) : that.lrrDm != null) return false;
        if (lrrq != null ? !lrrq.equals(that.lrrq) : that.lrrq != null) return false;
        if (xgrDm != null ? !xgrDm.equals(that.xgrDm) : that.xgrDm != null) return false;
        if (xgrq != null ? !xgrq.equals(that.xgrq) : that.xgrq != null) return false;
        if (yxbz != null ? !yxbz.equals(that.yxbz) : that.yxbz != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = uuid != null ? uuid.hashCode() : 0;
        result = 31 * result + (tdzdh != null ? tdzdh.hashCode() : 0);
        result = 31 * result + (tdsyqr != null ? tdsyqr.hashCode() : 0);
        result = 31 * result + (tdmj != null ? tdmj.hashCode() : 0);
        result = 31 * result + (tdxzDm != null ? tdxzDm.hashCode() : 0);
        result = 31 * result + (tdxz != null ? tdxz.hashCode() : 0);
        result = 31 * result + (tdytDm != null ? tdytDm.hashCode() : 0);
        result = 31 * result + (tdyt != null ? tdyt.hashCode() : 0);
        result = 31 * result + (tdyz != null ? tdyz.hashCode() : 0);
        result = 31 * result + (tdzldz != null ? tdzldz.hashCode() : 0);
        result = 31 * result + (tdsyqQsrq != null ? tdsyqQsrq.hashCode() : 0);
        result = 31 * result + (tdsyqZzrq != null ? tdsyqZzrq.hashCode() : 0);
        result = 31 * result + (tdsyqZsbh != null ? tdsyqZsbh.hashCode() : 0);
        result = 31 * result + (sjcjrqQsrq != null ? sjcjrqQsrq.hashCode() : 0);
        result = 31 * result + (sjcjrqZzrq != null ? sjcjrqZzrq.hashCode() : 0);
        result = 31 * result + (lrrDm != null ? lrrDm.hashCode() : 0);
        result = 31 * result + (lrrq != null ? lrrq.hashCode() : 0);
        result = 31 * result + (xgrDm != null ? xgrDm.hashCode() : 0);
        result = 31 * result + (xgrq != null ? xgrq.hashCode() : 0);
        result = 31 * result + (yxbz != null ? yxbz.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "TDSYQLX_DM", nullable = true, length = 6)
    public String getTdsyqlxDm() {
        return tdsyqlxDm;
    }

    public void setTdsyqlxDm(String tdsyqlxDm) {
        this.tdsyqlxDm = tdsyqlxDm;
    }

    @Basic
    @Column(name = "TDSYQLXMC", nullable = true, length = 60)
    public String getTdsyqlxmc() {
        return tdsyqlxmc;
    }

    public void setTdsyqlxmc(String tdsyqlxmc) {
        this.tdsyqlxmc = tdsyqlxmc;
    }
}
